package mainService.data;

import java.util.List;

/**
 * Permette di scrivere una linea in una lista di stringhe.
 * 
 * @author Daniel Procop, Mattia Grecchi
 */
public class ListStringWriter implements IBufferedStringWriter {
	private List<String> writer;

	public ListStringWriter(List<String> writer) {
		super();
		this.writer = writer;
	}

	@Override
	public void writeln(String message) {
		writer.add(message);
	}
}
